/**
 * 路由器
 *
 * @author jinzhengze
 */
import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        component: () => import('@/layout'),
        children: [
            {
                path: '/',
                component: () => import('@/pages/home/index.vue')
            },
            {
                path: 'platform',
                component: () => import('@/pages/platform/index.vue')
            },
            {
                path: 'res',
                component: () => import('@/pages/res/index.vue')
            },
        ]
    },
    {
        path: '/live',
        component: () => import('@/pages/live/index.vue')
    },
]
const router = createRouter({
    history: createWebHashHistory('/'),
    routes
})

export default router
